import request from '@/utils/request'
import Axios from 'axios';
export function fetchTabList(query) {
  let url = "fenggeList";
  if (query == "风格") {
    url = "fenggeList"
  }
  if (query == "主题") {
    url = "zhutiList"
  }
  if (query == "策略") {
    url = "celveList"
  }
  return Axios({
    url: "http://localhost:8081/" + url,
    method: 'get',
  })
}

export function searchResult(data) {
  return Axios({
    url: 'http://localhost:8081/query',
    method: 'post',
    data: data
  })
}

